package com.agv.core.services.catalogosImpl;

import com.agv.core.dao.catalogos.TerminoPagoDAO;
import com.agv.core.dao.exception.QueryDAOException;
import com.agv.core.services.catalogos.TerminoPagoService;
import com.agv.core.services.exception.ServiceException;
import com.agv.dto.TerminoPagoDTO;

public class TerminoPagoServiceImpl implements TerminoPagoService{

	TerminoPagoDAO terminoPagoDao;
	
	public Integer getTerminoPagoIdCliente(Integer idCliente) throws ServiceException{
		Integer tpDto;
		try {

			tpDto = terminoPagoDao.getTerminoPagoIdCliente(idCliente);

		} catch (QueryDAOException e) {
			throw new ServiceException(e);
		}		
		return tpDto;
	}

	public TerminoPagoDAO getTerminoPagoDao() {
		return terminoPagoDao;
	}

	public void setTerminoPagoDao(TerminoPagoDAO terminoPagoDao) {
		this.terminoPagoDao = terminoPagoDao;
	}
		
}
